package intelligentcity.model.streets;

import intelligentcity.conf.Conf;
import intelligentcity.model.Move;

public class HorizontalStreet extends Street {

    public HorizontalStreet(int x1, int y1, int x2, int firstStreetImportance, int secondStreetImportance) {
        super(new HorizontalOneWayStreet(x1, y1, x2, Move.LEFT), new HorizontalOneWayStreet(x1, y1
                + Conf.distanceBeetweenStreets, x2, Move.RIGHT), firstStreetImportance, secondStreetImportance);
    }

    public HorizontalStreet(int x1, int y1, int x2, int streetImportance) {
        super(new HorizontalOneWayStreet(x1, y1, x2, Move.LEFT), new HorizontalOneWayStreet(x1, y1
                + Conf.distanceBeetweenStreets, x2, Move.RIGHT), streetImportance);
    }

    public HorizontalStreet(int x1, int y1, int x2) {
        super(new HorizontalOneWayStreet(x1, y1, x2, Move.LEFT), new HorizontalOneWayStreet(x1, y1
                + Conf.distanceBeetweenStreets, x2, Move.RIGHT));
    }

}
